<?php $this->beginContent('//layouts/main'); ?>
<?php $control= Yii::app()->getController()->getId();?>
<div class="row">
<div class="span8">
		<?php echo $content; ?>
</div>
<div class="span4">
	<div id="sidebar">
	<?php
// 		$this->beginWidget('zii.widgets.CPortlet', array(
// 			'title'=>'Operations',
// 		));
//		$this->widget('zii.widgets.CMenu', array(
//			'items'=>$this->menu,
//			'htmlOptions'=>array('class'=>'operations'),
//		));
// 		$this->endWidget();
		if($control=='clip' || $control=='clipcategory'){
			$this->widget('ext.clip_menu.clip_menu');
		}
		elseif($control=='tv'){
			$this->widget('ext.tv_menu.tv_menu');
		}
		elseif($control=='home'){
			$this->widget('ext.hots_menu.hots_menu');
		}
		elseif($control=='member' || $control=='package'){
			$this->widget('ext.member_menu.member_menu');
		}
		elseif($control=='film' || $control=='category'|| $control=='type' || $control=='country' || $control=='episode'|| $control=='server'){
			$this->widget('ext.film_menu.film_menu');	
		}
		$this->widget('ext.user_menu.user_menu');
	?>
	</div><!-- sidebar -->
</div>
</div>
<?php $this->endContent(); ?>